class StudentOverview {
  StudentOverview({
    this.firstName,
    this.lastName,
    this.playerLevel,
    this.readTimes,
    this.readBooks,
    this.levelPercentage,
    this.lastLoggedIn,
    this.userName,
    this.quizTimes,
  });

  String? firstName;
  String? lastName;
  String? playerLevel;
  int? readTimes;
  int? readBooks;
  int? levelPercentage;
  int? lastLoggedIn;
  String? userName;
  int? quizTimes;

  factory StudentOverview.fromJson(Map<String, dynamic> json) =>
      StudentOverview(
        firstName: json["firstName"],
        lastName: json["lastName"],
        playerLevel: json["playerLevel"],
        readTimes: json["readTimes"],
        readBooks: json["readBooks"],
        levelPercentage: json["levelPercentage"],
        lastLoggedIn: json["lastLoggedIn"],
        userName: json["userName"],
        quizTimes: json["quizTimes"],
      );

  Map<String, dynamic> toJson() => {
        "firstName": firstName,
        "lastName": lastName,
        "playerLevel": playerLevel,
        "readTimes": readTimes,
        "readBooks": readBooks,
        "levelPercentage": levelPercentage,
        "lastLoggedIn": lastLoggedIn,
        "userName": userName,
        "quizTimes": quizTimes,
      };
}
